using System;
using System.Data;
using System.Windows.Forms;

namespace CatalogManager
{
	/// <summary>
	/// Category Node is used to hold category properties data
	/// </summary>
	public class CategoryNode : TreeNode
	{
		private DataRow categoryProperty = null;
		private DataSet categoryProducts = null;

		public bool IsVirtual = false;

		public CategoryNode()
		{

		}

		public CategoryNode(DataRow dr)
		{
			categoryProperty = dr;
			base.Text = dr["CategoryName"].ToString();
		}

		public DataRow CategoryProperty
		{
			get
			{
				return categoryProperty;
			}
		}

		public DataSet CategoryProducts
		{
			get
			{
				return categoryProducts;
			}
			set
			{
				categoryProducts=value;
			}
		}
	}
}
